package org.snacktest.annotation.use;

import java.io.IOException;
import java.util.Date;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.snackframework.annotation.Controller;
import org.snackframework.annotation.UrlMapping;

@Controller
public class ControllerAgain
{
	@UrlMapping("/test/sayhello")
	public void sayHello(HttpServletRequest req, HttpServletResponse resp,int i,String str,Date date)
	{
		try
		{
			resp.getWriter().println(date+":"+str);
		}
		catch(IOException e)
		{
			e.printStackTrace();
		}
	}
}
